package com.nineclock.signIn.controller;

import com.nineclock.common.entity.Result;
import com.nineclock.signIn.dto.SignInfoAllUserListDTO;
import com.nineclock.signIn.service.SignInLisService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: Xu
 * @Date: 2021/12/02/12:00
 */
@RestController
@RequestMapping
public class SignInListController {
@Autowired
private SignInLisService signInLisService;

    /**
     * 接口名称：APP: 获取团队员工打卡列表
     * Tag ：签到服务
     * 接口路径：GET/sign/listSignAllUser
     */
    @ApiOperation(value = "获取团队员工打卡列表")
    @GetMapping("/listSignAllUser")
    public Result<List<SignInfoAllUserListDTO>> findAllSingInList(@RequestParam String dateStr){
        List<SignInfoAllUserListDTO> signInfoAllUserListDTOS =  signInLisService.findAllSingInList(dateStr);
        return Result.success(signInfoAllUserListDTOS);
    }

}
